package com.ambulance.project.biz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 快捷单词表
 * </p>
 *
 * @author zr
 * @since 2020-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("biz_quickWords")
@ApiModel(value="QuickWords对象", description="快捷单词表")
public class QuickWords extends Model<QuickWords> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "类型1=既往病史,2=过敏史,3=抢救措施")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "值")
    @TableField("value")
    private String value;

    @ApiModelProperty(value = "频率")
    @TableField("frequency")
    private Integer frequency;

    @ApiModelProperty(value = "用户id")
    @TableField("userid")
    private String userid;

    @ApiModelProperty(value = "类型1=医生,2=护士")
    @TableField("genre")
    private String genre;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
